import Vue from "vue";
import Vuex from "vuex";
import pkg from "package";
import * as actions from "./actions";
import * as getters from "./getters";
import app from "./modules/app";
import entry from "./modules/entry";
import createLogger from "vuex/dist/logger";
import { alert } from "./modules/alert.module";
import { authentication } from "./modules/authentication.module";
import { users } from "./modules/users.module";
Vue.use(Vuex);
const store = new Vuex.Store({
  // 根据是否是生产环境使用
  //plugins: [createLogger()],
  strict: process.env.NODE_ENV !== "production",
  actions,
  getters,
  modules: {
    app,
    entry,
    alert,
    authentication,
    users
  },
  state: {
    pkg
  },
  mutations: {}
});

export default store;
